package com.example.performance.jmh.demo;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author zpMeng
 * @since 9/18/2024
 */
@Data
@AllArgsConstructor
public class Snowflake {
    private long id;

    public static Snowflake create(int i) {
        return new Snowflake(i);
    }

    public long nextId() {
        return id + 1;
    }
}
